import request from '@/utils/request'

/**
 * 查询数据库解析项
 * @param params
 * @returns {*}
 */
export function queryAllDataSource(params) {
  return request({
    url: 'rest/api/template/v1/analysis/data/source',
    method: 'get',
    params
  })
}

/**
 * 查询系统解析项
 * @param params
 * @returns {*}
 */
export function queryAllDataBySystem(params) {
  return request({
    url: 'rest/api/template/v1/analysis/data/system',
    method: 'get',
    params
  })
}

/**
 * 普通数据解析
 * @param params
 * @returns {*}
 */
export function queryAllSystemData(params) {
  return request({
    url: 'rest/api/temp/v2/column/analysis/tmp',
    method: 'get',
    params
  })
}

/**
 * 游客
 * @param params
 * @returns {*}
 */
export function queryAllGuestSystemData(params) {
  return request({
    url: 'rest/api/guest/temp/v2/column/analysis/tmp',
    method: 'get',
    params
  })
}

/**
 * 用戶系統内配置，非前端展示
 * @param params
 * @returns {*}
 */
export function queryAllSystemSys(params) {
  return request({
    url: 'rest/api/temp/v1/column/analysis/sys',
    method: 'get',
    params
  })
}

/**
 * 用戶系統内配置，非前端展示
 * @param params
 * @returns {*}
 */
export function queryAllGuestSystemSys(params) {
  return request({
    url: 'rest/api/guest/temp/v2/column/analysis/sys',
    method: 'get',
    params
  })
}

export function queryAllBySjx(params) {
  return request({
    url: 'rest/api/temp/v1/column/analysis/sjx',
    method: 'get',
    params
  })
}

export function queryAllGuestBySjx(params) {
  return request({
    url: 'rest/api/temp/v1/column/analysis/sjx',
    method: 'get',
    params
  })
}

export function queryAnalysis(params) {
  return request({
    url: 'rest/api/temp/v2/column/analysis/value',
    method: 'get',
    params
  })
}

export function queryGuestAnalysis(params) {
  return request({
    url: 'rest/api/guest/temp/v2/column/analysis/value',
    method: 'get',
    params
  })
}

/**
 * 详情查询
 * @param params
 * @returns {*}
 */
export function queryEntity(params) {
  return request({
    url: 'rest/api/temp/v1/entity/analysis/data',
    method: 'get',
    params
  })
}

/**
 * 游客详情解析
 * @param params
 * @returns {*}
 */
export function queryGuestEntity(params) {
  return request({
    url: 'rest/api/guest/temp/v1/entity/analysis/data',
    method: 'get',
    params
  })
}

/**
 * 服务详情
 * @param params
 * @returns {*}
 */
export function analysisEntity(params) {
  return request({
    url: 'rest/api/temp/v1/data/entity/obj',
    method: 'get',
    params
  })
}

export function analysisGuestEntity(params) {
  return request({
    url: 'rest/api/guest/temp/v1/data/entity/obj',
    method: 'get',
    params
  })
}

/**
 * 服务附件
 * @param params
 * @returns {*}
 */
export function analysisEnclosure(params) {
  return request({
    url: 'rest/api/temp/v1/data/entity/enclosure',
    method: 'get',
    params
  })
}

export function analysisGuestEnclosure(params) {
  return request({
    url: 'rest/api/guest/temp/v1/data/entity/enclosure',
    method: 'get',
    params
  })
}
/**
 * 详情中自定心数据模版
 * @param params
 * @returns {*}
 */
export function analysisEntityList(params) {
  return request({
    url: 'rest/api/temp/v1/data/entity/params',
    method: 'get',
    params
  })
}
export function analysisGuestEntityList(params) {
  return request({
    url: 'rest/api/guest/temp/v1/data/entity/params',
    method: 'get',
    params
  })
}
